/*
 * GWTServiceImpl.java
 *
 * Created on May 20, 2008, 12:45 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package cn.edu.ecnu.gis.server;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import cn.edu.ecnu.gis.client.GWTService;

/**
 *
 * @author meflyup
 */
public class GWTServiceImpl extends RemoteServiceServlet implements
    GWTService {

    public String myMethod(String s) {
        // Do something interesting with 's' here on the server.
       
try { // Call Web Service Operation
   spatialanalyst.RouteService service = new spatialanalyst.RouteService();
   spatialanalyst.RouteServicePortType port = service.getRouteServiceSOAP11PortHttp();
      // TODO process result here
   java.lang.String result = port.runRoute();
   System.out.println("Result = "+result);
} catch (Exception ex) {
   // TODO handle custom exceptions here
}
 return "Server says: " + s;
    }
}
